#ifndef UTILQTSTYLE_H
#define UTILQTSTYLE_H

#include "Common.h"
#include "SingletonTmpl.h"

class UtilQtStyle : public Single_T<UtilQtStyle>
{
public:
    void setHighDpiScale();
    void setQtStyle(const QString& style = "Fusion");
    void setStyleSheet(const QString &style, QWidget *parent = nullptr);
    QFrame *addHLine(const QString & HexColor = "#F8F8FF",int h = 1);
    QFrame *addVLine(const QString & HexColor = "#F8F8FF",int w = 1);
    void setSizePolicy(QWidget *wdiget,QSizePolicy::Policy hor = QSizePolicy::Preferred,QSizePolicy::Policy vert = QSizePolicy::Preferred);
private:
    SinglePri(UtilQtStyle);
};

#endif // UTILQTSTYLE_H
